import request from "@/utils/request";

export const getDeviceListByClassId = (classId: string) => {
    return request.get("/device/info/list", {
        params: {
            "classId": classId
        }
    });
}

export const getDeviceInfoById = (id: string) => {
    return request.get("/device/info", {
        params: {
            "id": id
        }
    })
}

export const getDeviceLogList = (deviceId: string) => {
    return request.get("/device/log/list", {
        params: {
            "deviceId": deviceId,
            "limit": 10
        }
    })
}